import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

const dataManage = {
    path: '/data',
    component: Layout,
    name: 'DataManage',
    meta: {
        title: '数据管理',
        code: 'dlyh_r_a5_1'
    },
    redirect: '/data/base/road/index',
    children: [
        {
            path: 'base',
            component: LayoutInset,
            name: 'baseDataManage',
            meta: {
                title: '基础数据管理',
                iconSvg: 'base',
                code: 'dlyh_a5_b10_1'
            },
            redirect: '/data/base/road/index',
            children: [
                {
                    path: 'road',
                    name: 'RoadInfo',
                    meta: {
                        title: '路网信息',
                        code: 'dlyh_b10_c19_1'
                    },
                    component: LayoutInset,
                    redirect: '/data/base/road/index',
                    children: [
                        {
                            path: 'index',
                            name: 'RoadIndex',
                            meta: {
                                title: '列表'
                            },
                            component: () => import('@/views/data/base/road/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'RoadDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/data/base/road/index'
                            },
                            component: () => import('@/views/data/base/road/detail'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'bridge',
                    name: 'BridgeInfo',
                    meta: {
                        title: '桥梁信息',
                        code: 'dlyh_b10_c20_1'
                    },
                    component: LayoutInset,
                    redirect: '/data/base/bridge/index',
                    children: [
                        {
                            path: 'index',
                            name: 'BridgeIndex',
                            meta: {
                                title: '列表'
                            },
                            component: () => import('@/views/data/base/bridge/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'BridgeDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/data/base/bridge/index'
                            },
                            component: () => import('@/views/data/base/bridge/detail'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'tunnel',
                    name: 'TunnelInfo',
                    meta: {
                        title: '隧道信息',
                        code: 'dlyh_b10_c21_1'
                    },
                    component: LayoutInset,
                    redirect: '/data/base/tunnel/index',
                    children: [
                        {
                            path: 'index',
                            name: 'TunnelIndex',
                            meta: {
                                title: '列表'
                            },
                            component: () => import('@/views/data/base/tunnel/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'TunnelDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/data/base/tunnel/index'
                            },
                            component: () => import('@/views/data/base/tunnel/detail'),
                            hide: true
                        }
                    ]
                }
            ]
        }
    ]
}
export default dataManage
